<?php if (!defined('THINK_PATH')) exit();?><script type="text/javascript" src="/App/PingNa/View/default/js/getFromJson.js"></script>
<footer class="footer-container">
    <div class="index_brand clear">
        <div class="footer_left fl">
            <div class="clear">
                <?php $location = 'http://'.$_SERVER['HTTP_HOST']; ?>
                <?php
 $_typeid = 0; if($_typeid == -1) $_typeid = I('cid', 0, 'intval'); $_fieldflag = 0; if($_fieldflag == 0){ $_navlist = get_category(1); }else{ $_navlist = M('category')->where(['status'=>1])->order('sort asc')->select(); } if($_typeid == 0) { $_navlist = Common\Lib\Category::toLayer($_navlist); }else { $_navlist = Common\Lib\Category::toLayer($_navlist, 'child', $_typeid); } foreach($_navlist as $autoindex => $navlist): $navlist['url'] = get_url($navlist); if($navlist[navlist]=='Y'): ?>
                        <dl>
                            <dt><?php echo ($navlist[name]); ?></dt>
                            <?php if(is_array($navlist["child"])): $i = 0; $__LIST__ = $navlist["child"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><dd><a href="<?=$v[pid]==131?$location.'#'.$v[ename]:'pn_'.$v[ename]?>"><?php echo ($v["name"]); ?></a></dd><?php endforeach; endif; else: echo "" ;endif; ?>
                        </dl>
                    <?php endif; endforeach;?>
            </div>
            <div class="footer_contact_info">
                <div>
                    <span class="footer_contact_info_phone"></span>
                    <p>加盟热线：400-9960806</p>
                </div>
                <div>
                    <span class="footer_contact_info_address"></span>
                    <p>
                        地址：广州市白云区同德乡465号康乃馨大厦二楼
                    </p>
                </div>
            </div>
            <?php
 $_id = intval(20); $where = array('aid'=> $_id, 'status' => 1); $limit = "1"; $abc_cate = M('abc')->find($_id); if ($abc_cate) { $limit = empty($limit) ? $abc_cate['num'] : $limit; $where['starttime'] = array('lt', time()); $where['endtime'] = array('gt', time()); $_abc = M('abcDetail')->where($where)->order('sort')->limit($limit)->select(); }else { $_abc = array(); } if (empty($_abc)) { $_abc = array(); } foreach($_abc as $autoindex => $abc): $abc['width'] = $abc_cate['width']; $abc['height'] = $abc_cate['height']; ?><div class="footer_wx">
                    <div>
                            <img src="<?php echo ($abc["content"]); ?>" alt="" />
                    </div>
                    <p>扫一扫 联系我们</p>
                </div><?php endforeach;?>
        </div>
        <div class="footer_right fr">
            <div class="footer_form_info">
                <span></span>
                <p>有任何问题请联系我们<br>
                    我们将以最快的速度回复您
                </p>
            </div>
            <form id="addform">
                <input type="text" name="username" placeholder="*姓名" />
                <input type="text" name="tel" placeholder="*电话" />
                <textarea name="content" placeholder="说点什么" id="message"></textarea>
                <button type="button" id="add">提交留言</button>
            </form>
            <script type="application/javascript">
                $('#add').click(function(){
                    var json = getJsonFrom('addform');
                    $.getJSON("<?php echo U('Message/saveMessage');?>",json,function(data){
                        switch (data['code']){
                            case 1:
                                toastr['success'](data['msg']);

                                break;
                            case 2:
                                toastr['error'](data['msg']);
                                break;
                        }
                        var doc = document.getElementById('addform').getElementsByTagName('input');
                        for(var i=0;i<doc.length;i++){
                            if(doc[i].getAttribute('name')) {
                                doc[i].value = "";
                            }
                        }
                        doc = document.getElementById('addform').getElementsByTagName('textarea');
                        for(var i=0;i<doc.length;i++){
                            doc[i].value = "";
                        }
                    });

                });
            </script>
        </div>
    </div>
    <address class="index_brand footer_address">
        友情链接：
        <?php
 $_typeid = 0; if ($_typeid>0 || substr($_typeid,0,1) == '$') { $where = array('ischeck'=> $_typeid); }else { $where = array('id' => array('gt',0)); } if (0 > 0) { $count = M('link')->where($where)->count(); $thisPage = new \Common\Lib\Page($count, 0); $thisPage->rollPage = 5; $thisPage->setConfig('theme'," %FIRST% %UP_PAGE% %LINK_PAGE% %DOWN_PAGE% %END%"); $limit = $thisPage->firstRow. ',' .$thisPage->listRows; $page = $thisPage->show(); }else { $limit = "8"; } $_flink = M('link')->where($where)->order("sort ASC")->limit($limit)->select(); if (empty($_flink)) { $_flink = array(); } foreach($_flink as $autoindex => $flink): ?><a href="<?php echo ($flink[url]); ?>"><?php echo ($flink[name]); ?></a>&nbsp;<?php endforeach;?><br/>
        版权信息：pingna.com
    </address>
</footer>
<a href="javascript:scroll(0,0)" class="go_top"></a>